package logger0

import "go.uber.org/zap"

func CreateZap() (logger *zap.Logger) {

	config := ZapConfig{
		Level:         "info",
		Format:        "console",
		Prefix:        "[gorm-dao]",
		Director:      "D:/tmp/logs",
		LinkName:      "latest_log",
		ShowLine:      true,
		EncodeLevel:   "LowercaseColorLevelEncoder",
		StacktraceKey: "stacktrace",
		LogInConsole:  true,
	}

	return InitZap(config)

}
